#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author:Summerday

data = '1,2,3,'

arr = data.split(',')[:-1]

print(arr)